﻿<%@ Page Language="C#" %>
<%@ Import Namespace= "System.Collections"%>
<%@ Import Namespace="System.Collections.Generic" %>


<%
    List<DTO.NhaSanXuatDto> list = BUS.NhaSanXuatBus.LayDanhSachNhaSanXuat();
    Response.Write("<?xml version='1.0' encoding='utf-8'?>");
    Response.Write("<root>");
    Response.Write("<total>" + list.Count + "</total>");
    Response.Write("<listnhasx>");
    foreach (DTO.NhaSanXuatDto nhasx in list)
    {
        Response.Write("<nhasanxuat>");
        Response.Write("<id>" + nhasx.ID + "</id>");
        Response.Write("<ten><![CDATA[" + nhasx.Ten + "]]></ten>");
        Response.Write("<diachi><![CDATA[" + nhasx.DiaChi + "]]></diachi>");
        Response.Write("<dienthoai>" + nhasx.DienThoai + "</dienthoai>");
        Response.Write("</nhasanxuat>");
    }
    Response.Write("</listnhasx>");
    Response.Write("</root>");
%>